//
// Created by 28365 on 2025/3/5.
//

#ifndef ODUPDATERSDK_IRESSEARCHPROCESSOR_H
#define ODUPDATERSDK_IRESSEARCHPROCESSOR_H

class IResSearchProcessor;

#include <map>
#include <list>
#include "../include/obj/Res.h"
#include "../include/obj/UpdateRecord.h"
#include "../include/ODUpdater.h"

/**
 * 资源检索处理器，用于检索，规划需要更新的资源
 */
class IResSearchProcessor {

public:
    /**
     * 取需要更新的资源
     * @param needRes 版本列表，从小到大排序
     * @param odUpdater 更新器对象
     */
    virtual void getUpdateRes(map<int, list<Res>,less<>> &needRes,const ODUpdater &odUpdater,const UpdateRecord &updateRecord) = 0;

    virtual ~IResSearchProcessor() = default;
};


#endif //ODUPDATERSDK_IRESSEARCHPROCESSOR_H
